package lad02.test05;

public class Cube {int length;
    int wide;
    int high;

    public void setVariable(int length, int wide, int high) {
        this.length = length;
        this.wide = wide;
        this.high = high;
    }

    public int getLength() {
        return length;
    }

    public int getWide() {
        return wide;
    }

    public int getHigh() {
        return high;
    }

    public void getCubeVolume() {
        int v = length * wide * high;
        System.out.println("立方体体积:" + v);
    }
}
